<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE xsl:stylesheet SYSTEM "lang://users">

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">	
	
	<xsl:include href="../main.xsl" />
	<xsl:include href="menu.xsl" />
	<xsl:include href="../common/form.xsl" />

	<xsl:template match="/data">
		<html>
		
		<head>
			<title>
				<xsl:value-of select="$pageTitle" />
			</title>
			<xsl:call-template name="meta-head" />
			<link rel="stylesheet" href="{$baseURI}/css/user-profile.css" type="text/css" media="all" />
			<link rel="stylesheet" href="{$baseURI}/css/forms.css" type="text/css" media="all" />
		</head>
		<body>
			
			<xsl:call-template name="top-userbar" />

			<div id="header">
				<xsl:call-template name="logo" />

				<xsl:call-template name="menu" />
			</div>

			<div id="blocks">
				<div id="blocks_inner">
					<xsl:call-template name="default-blocks-top" />
				</div>
			</div>

			<div id="content">
				<div id="content_inner">
					<xsl:apply-templates select="response" />
				</div>
			</div>

			<xsl:call-template name="footer" />
		</body>
		</html>
	</xsl:template>
	
	
	<xsl:template match="response">
		<h1>&labelEditProfile;</h1>
		
		<div id="small_menu">
			<a href="{$baseURI}/users/edit_profile">&labelEditPersonal;</a>
			<a href="{$baseURI}/users/avatars_manager">&labelAvatars;</a>
			<a href="{$baseURI}/users/site_settings">&labelEditSite;</a>
			<a href="{$baseURI}/users/change_password" class="selected">&labelChangePass;</a>
			<a href="{$baseURI}/users/delete_profile">&labelDeleteProfile;</a>
		</div>
		<xsl:apply-templates select="error" />
		<xsl:apply-templates select="message" />
		<form action="{$baseURI}/users/change_password/save" method="post">
			<div class="form_field">
				<div class="form_field_label">&labelOldPass;:</div>
				<div class="form_field_input">
					<input class="form_input_text" type="password" name="old_password" value="" />
				</div>
			</div>
			<div class="form_field">
				<div class="form_field_label">&labelNewPass;:</div>
				<div class="form_field_input">
					<input class="form_input_text" type="password" name="new_password" value="" />
				</div>
			</div>
			<div class="form_field">
				<div class="form_field_label">&labelRepeatNewPass;:</div>
				<div class="form_field_input">
					<input class="form_input_text" type="password" name="repeat_password" value="" />
				</div>
			</div>
			<p><input type="submit" name="save" value="&labelSaveButton;" /></p>
		</form>
	</xsl:template>
	
</xsl:stylesheet>